package com.zeng.diy;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author zeng
 * @data 2021/06/10 18:59
 */
@Aspect
public class AnotoDiyPoint {
    @Before("execution(* com.zeng.service.UserServiceiml.*(..))")
    public void before(){
        System.out.println("=====方法前=====");
    }

    @AfterReturning("execution(* com.zeng.service.UserServiceiml.*(..))")
    public void after() {
        System.out.println("=====方法后=====");
    }
}
